<?php
require_once(OC::$SERVERROOT . "/apps/jobposition/lib/helper.php");

if(!OC_User::isLoggedIn()) {
   echo '您需要先登录';
   exit();
}

OCP\JSON::callCheck();

$companyid = PFactory::getMasterUser()->id;

$searchUrl = JRequest::getString('searchurl', OC_Helper::linkToRoute('jobpos_search'));

$folderList = PJobpositionHelper::getCustomFolderList();

$tmpl = new OCP\Template('resumes', 'part.resume.folderlist', '');
$tmpl->assign('key', 'jobdir');
$tmpl->assign('searchUrl', $searchUrl);
$tmpl->assign('folderList', $folderList);
$tmpl->printPage();